package com.obas.events {
   import com.ease.framework.CommandCompletionEvent;

   import flash.events.Event;

   [Response(name="{RETURN_ID}", type="com.ease.framework.CommandCompletionEvent")]
   public class RequestStageMenuDataEvent extends Event {
      public static const REQUEST_ID:String = "RequestStageMenuDataEvent_Request";
      public static const RETURN_ID:String = "RequestStageMenuDataEvent_Return";

      public static const TYPE_GET_MENU:int = 0;
      public static const TYPE_GET_TOOL_BUTTON:int = 1;

      private var _spec:Object;
      private var _actionType:int;
      public function RequestStageMenuDataEvent(spec:Object,
                                                actionType:int = TYPE_GET_MENU, type:String = null) {
         var typeId : String = type;
         if( type == null ) {
            typeId = REQUEST_ID;
         }
         super(typeId);
         _spec = spec;
         _actionType = actionType;
      }

      public override function clone():Event {
         var event:RequestStageMenuDataEvent =
            new RequestStageMenuDataEvent(spec, actionType, type);
         return event;
      }

      public function get spec():Object {
         return _spec;
      }

      public function get actionType():int {
         return _actionType;
      }
   }
}